package edu.its.dreamteam.daf.beans;

import java.io.Serializable;

public class Team extends BaseBean implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idTeam;
	private String nameTeam;
	private String idFormation;
	private String idRoom;
	private String username;
	private Integer point;
	private Formation formation;
	private Room room;
	private Manager manager;
	
	
	public Integer getPoint() {
		return point;
	}


	public void setPoint(Integer point) {
		this.point = point;
	}


	public String getIdTeam() {
		return idTeam;
	}


	public void setIdTeam(String idTeam) {
		this.idTeam = idTeam;
	}


	public String getNameTeam() {
		return nameTeam;
	}


	public void setNameTeam(String nameTeam) {
		this.nameTeam = nameTeam;
	}


	public String getIdFormation() {
		idFormation = getFormation().getIdFormation();
		return idFormation;
	}


	public void setIdFormation(String idFormation) {
		this.idFormation = idFormation;
		getFormation().setIdFormation(idFormation);
	}


	public String getIdRoom() {
		idRoom = getRoom().getIdRoom();
		return idRoom;
	}


	public void setIdRoom(String idRoom) {
		this.idRoom = idRoom;
		getRoom().setIdRoom(idRoom);
	}


	public String getUsername() {
		username = getManager().getUsername();
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
		getManager().setUsername(username);
	}


	public Formation getFormation() {
		if(formation==null){
			formation = new Formation();
		}
		return formation;
	}


	public void setFormation(Formation formation) {
		this.formation = formation;
	}


	public Room getRoom() {
		if(room==null){
			room = new Room();
		}
		return room;
	}


	public void setRoom(Room room) {
		this.room = room;
	}


	public Manager getManager() {
		if(manager==null){
			manager = new Manager();
		}
		return manager;
	}


	public void setManager(Manager manager) {
		this.manager = manager;
	}


	@Override
	protected String getPrimaryKey() {
		return getIdTeam();
	}


}
